<include file="Public:header" />
<div class="subnav">
  <div class="content-menu ib-a blue line-x"> <a href="../Friendlink - 拷贝/__ACTION__/currentMenu/admin"  target="right" /><em>后台菜单</em></a><span>|</span> <a href="../Friendlink - 拷贝/__ACTION__/currentMenu/index" target="right" /><em>前台导航</em></a><span> </div>
</div>
<style type="text/css"> 
	html{_overflow-y:scroll}
</style>
<form name="myform" id="myform" action="../Friendlink - 拷贝/__URL__/updateSort" method="post">
  <div class="pad_10">
  <div class="explain-col" style="position: relative;"> 温馨提示：请在添加、修改栏目全部完成后，<a href="">更新栏目缓存</a>
    <div class="content-menu" style="position: absolute; right: 30px;top: 5px;">
      <table width="100%">
        <tr>
          <td width="100%"><a href="javascript:openWinBox('__URL__/addMenu','添加菜单');" class="add fb"><em>添加菜单</em></a></td>
        </tr>
      </table>
    </div>
  </div>
  <div class="bk10"></div>
  <div class="table-list">
  <table width="100%" cellspacing="0" >
    <thead>
      <tr>
        <th width="38">排序</th>
        <th >网站名称</th>
        <th align='center'>图片LOGO</th>
        <th  width="220">所属分类<span style="cursor:pointer; margin-left:10px;" onclick="showMenu()" id="showMenu">(展开)</span></th>
        <th >链接类型</th>
        <th align='center'>状态</th>

        <th >管理操作</th>
      </tr>
    </thead>
    <tbody>
      <volist name="list" id="vo">
        <tr class="topList level-1">
          <td align='center'>
          <input name='sortArr[]' type='text' size='3' value='{$vo.sort}' class='input-text-c'></td>
          <input name="idArr[]" type="hidden" value="{$vo.id}">
          <td align='center'><font color="red">{$vo.levelName}</font></td>
          <td><span style=" cursor:pointer" onclick="toggleList('{$vo.id}')">{$vo.name|L}
            </sapn>
            <img src ="../Friendlink - 拷贝/../Public/Images/icon/gear_disable.png" title="不在导航显示"></td>
          <td align='center'>{$vo.name}</td>
          <td align='center'>{$vo.model}</td>
          <td align='center'><a href="javascript:openWinBox('__URL__/addMenu/id/{$vo.id}','{$vo.name}')">修改</a> | <a href="javascript:openWinBox('__URL__/addMenu/id/{$v.id}','{$v.name}')">删除</a></td>
        </tr>
      </volist>
    </tbody>
  </table>
  <div class="btn">
  <div id="pages">{$page}</div>
  <label for="check_box">
  <input name="submit" type="submit" class="button" value="更新排序">
  &nbsp;
  </div>
  </div>
  </div>
  </div>
</form>
</body></html><script language="JavaScript"> 
$(document).ready(function(e) {
	window.top.$('#display_center_id').css('display','none');
	$(".content-menu").find('a').first().addClass('on');
	
    $(function(){
		$('#myform').ajaxForm({
			beforeSubmit:  checkForm,
			success:       complete,
			dataType: 'json'
		});
		function checkForm(){
			return true;	
		}
		
		function complete(data){
			art.dialog({id:'TNCICC',content: data.info,time: 2,icon:'succeed'});
			closeWin(1500);
		}
	})

});



function toggleList(id){
	$(".list-"+id).toggle()
}

function showMenu(){
	$(".level-2").toggle()
	$(".level-3").toggle()
	var status = $("#showMenu").text();
	if(status=='(伸缩)'){
		$("#showMenu").text('(展开)');
	}else{
		$("#showMenu").html('(伸缩)');
	}
	//$("#showMenu").html('伸缩');
	/*
	$("#showMenu").toggle(function(){
		$("#showMenu").text('伸缩');
	},function(){
		$("#showMenu").text('展开');
	})*/

}

</script>